import request from '@/utils/request'
// 查询所有角色
export const getRoleListAPI = () => request.get('/park/sys/role')
// 查询所有功能权限
export const getTreeListAPI = () => request.get('park/sys/permision/all/tree')
// 获取当前角色权限点列表
export const getRoleDetailAPI = roleId => request.get(`/park/sys/role/${roleId}`)
// 获取角色成员列表
export const getRoleUserAPI = roleId => request.get(`/park/sys/roleUser/${roleId}`)
// 创建角色
export const createRoleUserAPI = data => request.post(`/park/sys/role`, data)
// 更改角色
export const updateRoleAPI = data => request.put(`/park/sys/role`, data)
// 删除角色
export const delRoleUserAPI = (roleId) => request.delete(`/park/sys/role/${roleId}`)
